package com.huayanginfo.saas.domain;

import java.sql.Timestamp;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;

import com.huayanginfo.saas.domain.member.User;

public class Task implements java.io.Serializable{
	private static final long serialVersionUID = 3384359397636745514L;
	private Integer id;
	private String name;
	private Date dueDate;
	private TaskPriority priority;
	private TaskRecurrence recurrence;
	private String tag;
	private Timestamp createTimestamp;
	
	private Set<TaskComment> comments = new LinkedHashSet<TaskComment>();
	
	private Project project;
	private User creator;
	
	public static enum TaskPriority {
		low, normal, high;
	}
	
	public enum TaskRecurrence {
		once,daily,weekly,monthly,quarterly,yearly;
	}
	
	public Integer getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public TaskPriority getPriority() {
		return priority;
	}

	public void setPriority(TaskPriority priority) {
		this.priority = priority;
	}

	public TaskRecurrence getRecurrence() {
		return recurrence;
	}

	public void setRecurrence(TaskRecurrence recurrence) {
		this.recurrence = recurrence;
	}


	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}


	public Timestamp getCreateTimestamp() {
		return createTimestamp;
	}

	public void setCreateTimestamp(Timestamp createTimestamp) {
		this.createTimestamp = createTimestamp;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Set<TaskComment> getComments() {
		return comments;
	}

	public void setComments(Set<TaskComment> comments) {
		this.comments = comments;
	}
	
	
}
